package codename.carrot.bomberman.game.gamemessages;

/**
 *   A networkmessage which says the game has ended, and a winner announced
 * @author Group A4
 *
 */
public class GameOverMessage extends BombermanMessage{	
	/**
	 * the UID for serialization
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 *  the ID of the player that won the game
	 */
	private int winner = -1;

	/**
	 * Returns the ID of the player that won the game
	 * @return winner
	 */
	public int getWinner() {
		return winner;
	}
	
	/**
	 * Sets the ID of the player that won the game
	 * @param winner the ID of the winner
	 */
	public void setWinner(int winner) {
		this.winner = winner;
	}
	

}
